public class Dog extends Animal implements Iruning,Iswimming{
    public Dog(String name, int age) {
        super(name, age);
    }

    @Override
    public void run() {
        System.out.println(getName()+"会奔跑");
    }

    @Override
    public void swim() {
        System.out.println(getName()+"会游泳");
    }
}
